package com.sgcc.isc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sgcc.isc.mapper.SpPortLogMapper;
import com.sgcc.isc.domain.SpPortLog;
import com.sgcc.isc.service.ISpPortLogService;

/**
 * 接口日志Service业务层处理
 * 
 * @author sgcc
 * @date 2021-04-27
 */
@Service
public class SpPortLogServiceImpl implements ISpPortLogService 
{
    @Autowired
    private SpPortLogMapper spPortLogMapper;

    /**
     * 查询接口日志
     * 
     * @param id 接口日志ID
     * @return 接口日志
     */
    @Override
    public SpPortLog selectSpPortLogById(String id)
    {
        return spPortLogMapper.selectSpPortLogById(id);
    }

    /**
     * 查询接口日志列表
     * 
     * @param spPortLog 接口日志
     * @return 接口日志
     */
    @Override
    public List<SpPortLog> selectSpPortLogList(SpPortLog spPortLog)
    {
        return spPortLogMapper.selectSpPortLogList(spPortLog);
    }

    /**
     * 新增接口日志
     * 
     * @param spPortLog 接口日志
     * @return 结果
     */
    @Override
    public int insertSpPortLog(SpPortLog spPortLog)
    {
        return spPortLogMapper.insertSpPortLog(spPortLog);
    }

    /**
     * 修改接口日志
     * 
     * @param spPortLog 接口日志
     * @return 结果
     */
    @Override
    public int updateSpPortLog(SpPortLog spPortLog)
    {
        return spPortLogMapper.updateSpPortLog(spPortLog);
    }

    /**
     * 批量删除接口日志
     * 
     * @param ids 需要删除的接口日志ID
     * @return 结果
     */
    @Override
    public int deleteSpPortLogByIds(String[] ids)
    {
        return spPortLogMapper.deleteSpPortLogByIds(ids);
    }

    /**
     * 删除接口日志信息
     * 
     * @param id 接口日志ID
     * @return 结果
     */
    @Override
    public int deleteSpPortLogById(String id)
    {
        return spPortLogMapper.deleteSpPortLogById(id);
    }
}
